<template>
  <div class="index404" :style="{height:height,width:width}">
    <el-button class="index404_btn" @click="$router.push('/')">返回首页</el-button>
    <!--<el-button  class="index404_btn" plain>朴素按钮</el-button>-->
  </div>
</template>
<script>
export default {
  data () {
    return {
      height:'100px',
      width:'100px'
    }
  },
  computed: {
  // 计算
  },
  created () {
  // 生命周期创建
    this.height = document.documentElement.scrollHeight + 'px';
    this.width = document.documentElement.scrollwidth  + 'px'
  },
  mounted () {
  // 生命周期创建完成DOM渲染完毕
  },
  methods: {
  // 方法
  },
  watch: {
    // 监听数据变化
  }
}
</script>

<style>
  .index404 {
    background: url("../../assets/404.png");
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(248, 248, 248);
    border: 0px;
    margin: 0px;
    padding: 0px;
    position: relative;
  }

  .index404_btn {
    position: absolute;
    left: 50%;
    margin-left: -110px !important;
    top: 50%;
    margin-top: 120px !important;
    width: 220px;
    height: 40px;
    background: rgba(0, 0, 0, 0);
  }

</style>
